﻿@{
    ViewBag.Title = "Index";
}

<h2>Magazine</h2>

<table>
    <thead>
        <tr>
            <td>Title</td>
            <td>Buy</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var magazie in Model)
        {
            <tr>@Html.Encode(magazie.Title)</tr>
            <tr><a href="~/BuyMagazine/Buy?resourceId=@Html.Encode(magazie.Id)">购买</a></tr>
        }
    </tbody>

</table>
